package 线程.demo16;

/**
 * @author wql
 * @version 1.0
 * @date 2022/11/1 22:31
 */

public class Test {
    public static void main(String[] args) {
        BankCard bankCard =new BankCard();
        Girl girl = new Girl(bankCard);
        Boy boy = new Boy(bankCard);
        boy.setName("刘恺威");
        girl.setName("杨幂");
        boy.start();
        girl.start();
    }
}
